package chat.user;

public class RequestChangeUserGroup extends Request {
	
	private String user_name, old_group, new_group;
	private User from_user;
	
	public RequestChangeUserGroup(User destination_user, String new_group, String old_group){
		
		super.abs_user = destination_user;
		this.old_group = destination_user.getRelatedGroup();
		this.new_group = new_group;
		
	}
	
	public RequestChangeUserGroup(User user, String new_group, String old_group, User from_user){
		
		super.abs_user = user;
		this.old_group = old_group;
		this.new_group = new_group;
		this.from_user = from_user;
		
	}	
	
	public String getOldGroup(){
		
		return this.old_group;
	}
	
	public String getNewGroup(){
		
		return this.new_group;
	}
	
	public User getChangedUser(){
		
		return this.from_user;
	}
}
